﻿<!DOCTYPE html>

<html>

<head>

    <meta charset="utf-8" />

    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">

    <title></title>
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <link href="__PUBLIC__/Home/xuanfangdownload/css/swiper.min.css" rel="stylesheet" />



    <style type="text/css">
        .box_btn {
            position: absolute;
            bottom: 1.5rem;
            width: 80%;
            left: 10%;
            height: 1.9rem;
            background: url('__PUBLIC__/Home/xuanfangdownload/images/bg_btn1.gif') no-repeat;
            text-align: center;
            line-height: 1rem;
            z-index: 100;
            background-size: 100% 100%;
        }
        .box_btn1 {
            position: absolute;
            bottom: 1.5rem;
            width: 80%;
            left: 10%;
            height: 1.2rem;
            background: url('__PUBLIC__/Home/xuanfangdownload/images/bg_btn.png') no-repeat;
            text-align: center;
            line-height: 1rem;
            z-index: 100;
            background-size: 100% 100%;
        }

        .button {
            display: block;
            height: 100%;
            width: 100%;
            color: #fff;
            font-size: 0.38rem;
            text-decoration: none;
        }

        .text {
            position: absolute;
            bottom: 0.7rem;
            text-align: center;
            width: 100%;
            animation: fade 2s infinite;
        }

        .text p {
            margin: 0;
            margin-bottom: 4px;
            font-size: 0.33rem;
            color: #ff9549;
        }

        .text img {
            width: 0.37rem;
        }

        /*微信跳转页--我知道了*/

        .box3 {
            z-index: 100;
            display: none;
            position: fixed;
            top: 0;
            left: 0;
        }

        .box3 img {
            width: 100%;
            height: 100%
        }

        .box3 p {
            color: #fff;
            font-size: 0.28rem;
            position: absolute;
            top: 3.8rem;
            left: 50%;
            transform: translateX(-47%);
            letter-spacing: 24px;
        }

        @keyframes fade {
            0%,
            100% {
                opacity: 1;
                transform: translateY(0);
            }
            50% {
                opacity: 0;
                transform: translateY(20px);
            }
        }

        .page {
            background-size: contain;
            background-repeat: no-repeat;
            position: relative;
            background-position: center center;
        }

        .page-1 {
            background-image: url("__PUBLIC__/Home/xuanfangdownload/images/four.png");
        }

        .page-2 {
            background-image: url("__PUBLIC__/Home/xuanfangdownload/images/five.png");
        }
    </style>
    <script>
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?0b83d01af866a722c9f9e6d2bdf9f49b";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
</head>

<body>

    <div>

        <div id="container">
            <div class="page page-1">
                <div class="box_btn1">
                    <a class="button"></a>
                </div>
                <div class="text">
                    <p>您收到10条房源推荐</p>
                    <img src="__PUBLIC__/Home/xuanfangdownload/images/info.png">
                </div>
            </div>
            <div class="page page-2">
                <div class="box_btn">
                    <a class="button"></a>
                </div>
            </div>
        </div>

    </div>
    <div class="box3">
        <img src="__IMG__/xuanfangshare/zzc.png" alt="" class="img">
        <p>我知道了</p>
    </div>
</body>



<script src="__PUBLIC__/Home/xuanfangdownload/js/jquery-1.83.min.js"></script>
<script src="__PUBLIC__/Home/xuanfangdownload/js/slip.js"></script>
<script type="text/javascript">
    var container = document.getElementById('container');
    var pages = document.querySelectorAll('.page');
    var slip = Slip(container, 'y').webapp(pages);



    var u = navigator.userAgent;

    var ua = u.toLowerCase();

    var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端 

    var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端

    var app_ios = 0;
    var platform = 0;
    appVersion = {};
    if (isAndroid) {

        app_ios = 1;
        platform = 1;

    } else if (isiOS) {

        app_ios = 2;
        platform = 3;

    } else {

    }

    $.ajax({

        url: '/Home/Operation/getAppVersion',

        type: 'get',

        data: {

            platform: platform,

            os: app_ios

        },
        success: function (data) {
            appVersion = JSON.parse(data);

        }

    });



    $(document).ready(function () {
        $('.button').click(function () {
            console.log(appVersion);
            if (ua.indexOf('micromessenger') != -1) {
                $(".box3").css("display", "block");
                $(".button").css("display", "none");

            } else {
                $.ajax({

                    url: '/Home/Operation/operationAddLog',

                    type: 'get',

                    data: {
                        type: 2,
                        version: appVersion['version'],
                        os: appVersion['os'],
                        url: appVersion['url'],
                        //url: JSON.parse(appVersion['url']),
                        platform: appVersion['platform'],
                        app_version_id: appVersion['id'],
                        edition: appVersion['edition'],
                        event: 'xuanfangdNine',
                    },
                    success: function (data) {
                        console.log(appVersion);
                        var script = document.createElement("script");
                        script.type = "text/javascript";
                        script.src = "https://at.umeng.com/onelink/THzCie";
                        var script1 = document.createElement("script");
                        script1.type = "text/javascript";
                        script1.src = "http://gtrace.gimc.cn/t?z=gimc_eagle&id=20";
                        document.body.appendChild(script1);
                        document.body.appendChild(script);

                        window.location.href = appVersion['url'];

                    }

                });
            }
            //判断是否是android手机微信浏览器
        });
        $('.box3 p').click(function () {
            $(".box3").css("display", "none");
            $(".button").css("display", "block");
        })
    });
</script>

<!--导入rem js-->

<script type="text/javascript">
    (function (designWidth, maxWidth) {

        var doc = document,

            win = window,

            docEl = doc.documentElement,

            remStyle = document.createElement("style"),

            tid;

        function refreshRem() {

            var width = docEl.getBoundingClientRect().width;

            maxWidth = maxWidth || 540;

            width > maxWidth && (width = maxWidth);

            var rem = width * 100 / designWidth;

            remStyle.innerHTML = 'html{font-size:' + rem + 'px;}';

        }

        if (docEl.firstElementChild) {

            docEl.firstElementChild.appendChild(remStyle);

        } else {

            var wrap = doc.createElement("div");

            wrap.appendChild(remStyle);

            doc.write(wrap.innerHTML);

            wrap = null;

        }

        refreshRem();

        win.addEventListener("resize", function () {

            clearTimeout(tid)

            tid = setTimeout(refreshRem, 300);

        }, false);

        win.addEventListener("pageshow", function (e) {

            if (e.persisted) {

                clearTimeout(tid);

                tid = setTimeout(refreshRem, 300);

            }

        }, false);

        if (doc.readyState === "complete") {

            doc.body.style.fontSize = "16px";

        } else {

            doc.addEventListener("DOMContentLoaded", function (e) {

                doc.body.style.fontSize = "16px";

            }, false);

        }

    })(750, 750);
</script>


<script src="http://gtrace.gimc.cn/t?z=gimc_eagle&id=19"></script>

</html>